package org.example.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.domain.vo.InterviewRequest;
import org.example.domain.vo.SearchAnswerRequest;
import org.example.pojo.entity.TopicAboutCompany;
import org.example.pojo.entity.User;
import org.example.result.Result;

import java.io.IOException;
import java.util.List;
import java.util.Map;

public interface InterviewAccordingToCompanyService extends IService<TopicAboutCompany> {

    Result<List<String>> getTopicAboutCompany(String companyName);
    Result<List<String>> summarizeKeyWordsAccordingToTheTopic(List<String> topic);
    Result<List<String>> topicalAccordingToTheKeyWord(List<String> keyWord);
    Result<String> interview(InterviewRequest interviewRequest);
    Result<Map<String, List<String>>> searchAnswer(List<String> questionList);
    Result<String> storeAndEmbeddingAnswerAndQuestion(List<String> questionList);
    Result<String> summarizeInterview();
    Result<String> generateAndStoreStandardAnswers(SearchAnswerRequest questions);
    Result<Double> calculateAnswerSimilarity(String question, String userAnswer);
    Result<String> startInterview(List<String> topics);
    Result<String> handleUserAnswer(String answer);
    Result<List<String>> summarizeResume(String filePath) throws IOException;
    Result<List<String>> readWeakKnowledgePointsAndAnalyze(User user);
}
